package com.haojin.service.Impl;

import com.haojin.anno.Bean;
import com.haojin.anno.Di;
import com.haojin.dao.UserDao;
import com.haojin.service.UserService;

/**
 * @author .29.
 * @create 2023-02-03 17:47
 */
@Bean
public class UserServiceImpl implements UserService {

    @Di
    private UserDao userDao;

    @Override
    public void add() {
        System.out.println("ServiceImpl。。。。");
        //调用Dao方法
        userDao.add();
    }
}
